package com.gy.hsim.bservice.userGroupingManagement.service;

import java.util.List;

import com.gy.hsim.bservice.userGroupingManagement.bean.Team;

/**
 * 
 * @ClassName: TeamService
 * @Description: 好友分组服务接口 
 * @author quanrj 
 * @date 2015-12-11 上午 10:11:08
 */
public interface TeamService {
	//添加分组接口
	public int addTeam(Team team) throws Exception;
	
	//根据用户账号查询所有分组接口
	public List<Team> queryTeamInfoByUserId(Team team) throws Exception;
	
	//查询好友是否把用户拉黑,返回值大于0表示已经设置了
	public int queryFriendSetUserBlacklisted(Team team) throws Exception;
	
	//更新分组信息接口
	public int updateTeamInfo(Team team) throws Exception;
	
	//删除分组接口
	public int deleteTeam(Team team) throws Exception;
	
	//删除分组后更新好友分组为空
	public int updateTeamsetAfterDeleteTeam(Team team) throws Exception;
	
	//把好友添加到 分组中
	//public int addFriendIntoTeam(Team team) throws Exception;
	public int addFriendIntoTeam(List<Team> team) throws Exception;
	
	//通过查询用户创建的分组个数，
	public boolean getTotalTeamsUserCreateCheck (Team team) throws Exception;
	
	//查询用户是否创建过分组名
	public boolean teamNameCheck (Team team) throws Exception;
}
